import { createApp } from 'vue'
import { createPinia } from 'pinia'
import VueSignaturePad from "vue-signature-pad";

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import i18n from './local';


import {Map,List} from "immutable";
let   array:any =List([1,2,3,4]);
//声明的集合  放入List方法中
//当array每次被操作的时候  都会生成也给新的集合
let  array1:any =  array.push(5);

console.log(array)
console.log(array1);
console.log(array == array1);
console.log(array.get(4))
console.log(array1.get(4));


let  person  = Map({
    username:"leson",
    userage:18
})

let person1 = person.set("username","lili")

console.log(person.get("username"));
console.log(person1.get("username"));

const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(ElementPlus)//全局引用UI组件
app.use(VueSignaturePad)//全局引用签名组件
app.use(i18n);
app.mount('#app')
